package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	import mapEditorSM.Map;
	
	/**
	 * 
	 * @author simon
	 * 
	 */
	[SWF(width = "800", height = "600")]
	public class MapEditorSM extends Sprite
	{
		private var m:Map;
		public function MapEditorSM()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			m=new Map;
			m.graphics.beginFill(0);
			m.graphics.drawRect(0,0,100,100);
			addChild(m);
			stage.addEventListener(Event.RESIZE,onResize);
		}
		
		private function onResize(e:Event):void
		{
			trace("stageWidth:"+stage.stageWidth);
			trace("width:"+stage.width);
		}
	}
}